package com.ruoyi.quartz.util;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

//返回的数据对象
@Data
@AllArgsConstructor
@NoArgsConstructor
public class MyResponse {
    private String status ;//状态
    private String message;//信息
    private Object Data;//返回的数据

    public static MyResponse success(String message , Object data) {
        return new MyResponse("success",message,data);
    }

    public static MyResponse fail(String message ) {
        return new MyResponse("fail",message,null);
    }


}
